package org.yang.faq.model;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;


/**
 * <p>
 * 节目列表
 * </p>
 *
 * @author Yang
 * @since 2017-12-20
 */
public class Program extends Model<Program> {

	private static final long serialVersionUID = 1L;

	private String id;
	/**
	 * 节目名称
	 */
	private String name;
	/**
	 * 作者
	 */
	private String author;
	/**
	 * 内容
	 */
	private String content;
	@TableField("praise_count")
	private Integer praiseCount;
	@TableField("comment_count")
	private Integer commentCount;
	/**
	 * 创建时间
	 */
	@TableField("create_time")
	private Date createTime;
	/**
	 * 班级
	 */
	private String grade;
	/**
	 * 图片名称集合
	 */
	private String picture1;
	private String picture2;
	private String picture3;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getPraiseCount() {
		return praiseCount;
	}

	public void setPraiseCount(Integer praiseCount) {
		this.praiseCount = praiseCount;
	}

	public Integer getCommentCount() {
		return commentCount;
	}

	public void setCommentCount(Integer commentCount) {
		this.commentCount = commentCount;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getGrade() {
		return grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

	public String getPicture1() {
		return picture1;
	}

	public void setPicture1(String picture1) {
		this.picture1 = picture1;
	}

	public String getPicture2() {
		return picture2;
	}

	public void setPicture2(String picture2) {
		this.picture2 = picture2;
	}

	public String getPicture3() {
		return picture3;
	}

	public void setPicture3(String picture3) {
		this.picture3 = picture3;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Program{" +
				", id=" + id +
				", name=" + name +
				", author=" + author +
				", content=" + content +
				", praiseCount=" + praiseCount +
				", commentCount=" + commentCount +
				", createTime=" + createTime +
				", grade=" + grade +
				", picture1=" + picture1 +
				", picture2=" + picture2 +
				", picture3=" + picture3 +
				"}";
	}
}